package com.bdmc.task.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.bdmc.common.annotation.ExcelDictFormat;
import com.bdmc.common.convert.ExcelDictConvert;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 排班计划视图对象 task_work_plan
 *
 * @author bdmc
 * @date 2022-03-06
 */
@Data
@ExcelIgnoreUnannotated
public class TaskWorkPlanVo {

	private static final long serialVersionUID = 1L;

    /**
     * 排班计划id
     */
	@ExcelProperty(value = "排班计划id")
	private Long workPlanId;

    /**
     * 排班计划名称
     */
	@ExcelProperty(value = "排班计划名称")
	private String workPlanName;
	/**
	 * 班组类型，1=人员排班，2=车辆排班
	 */
	private String workPlanType;
	/**
	 * 车辆排班时，车辆id
	 */
	private Long carId;
    /**
     * 部门id
     */
	@ExcelProperty(value = "部门id")
	private Long deptId;

    /**
     * 网格id
     */
	@ExcelProperty(value = "网格id")
	private Long fenceId;

    /**
     * 报警规则id
     */
	@ExcelProperty(value = "报警规则id")
	private Long alarmRuleId;

    /**
     * 工作对象id
     */
	@ExcelProperty(value = "工作对象id")
	private Long personId;

    /**
     * 计划日期
     */
	@ExcelProperty(value = "计划日期")
	private String planMonth;

    /**
     * 备注
     */
	@ExcelProperty(value = "备注")
	private String remark;


	/**
	 * 部门名称
	 */
	@ExcelProperty(value = "部门名称")
	private String deptName;

	/**
	 * 人员名称
	 */
	private String personName;

	/**
	 * 车牌号
	 */
	private String carNum;

	private String fenceName;

	private String alarmRuleName;

	@JsonFormat(pattern = "yyyy-MM-dd")
	private LocalDate createTime;

    public List<TaskPlanDetailVo> planDetailList;


}
